<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多选列表框</title>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id ="app">
       <h3>多选</h3>
       <select v-model="fruits" multiple>
        <option >香蕉</option>
        <option >苹果</option>
        <option >橘子</option>
        <option >橙子</option>
        <option >西瓜</option>
       </select>
       <p>你想吃的水果是:{{fruits}}</p>
    </div>
    
    <script>
       let app =new Vue({
         el:"#app",
         data:{
           fruits:""
         }
       })
    </script>  
</body>
</html>